<?php
//Dinh nghia URL cho ten cua Project
define('URL_APPLICATION','/NamHai_zend_shopping_beta');

//Duong dan den thu muc chua ung dung (folder application)
defined('APPLICATION_PATH')
	|| define('APPLICATION_PATH', 
			  realpath(dirname(__FILE__) . '/application'));

// Define application environment (cho phan doan developer)
defined('APPLICATION_ENV')
    || define('APPLICATION_ENV',
              (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV')
                                         : 'developer'));
			  
//Nap duong dan den cac thu vien se su dung trong ung dung
set_include_path(implode(PATH_SEPARATOR, array(
    dirname(__FILE__) . '/library',
    get_include_path(),
)));
                                         
//Duong dan den thu muc /public
define('PUBLIC_PATH', realpath(dirname(__FILE__) . '/public'));

//Duong dan den thu muc /templates
define('TEMPLATE_PATH', PUBLIC_PATH . '/templates');
//Duong dan den thu muc /template tren thanh dia chi
define('TEMPLATE','/public/templates');

//Dinh nghia duong dan den thu vien chua scripts(css, javascrips...)
define('URL_SCRIPT',URL_APPLICATION . '/public/scripts');
define('DIR_SCRIPTS',realpath(dirname(__FILE__) . '/public/scripts'));//realpath(dirname(__FILE__)lay duong dan truc tiep cua file hien thoi
																	//neu la  realpath(dirname(__CLASS__) thi co nghia la lay duong dan truc tiep cua class chua cau lenh nay